package com.yang.service.impl;

import com.yang.dao.UserThingsDao;
import com.yang.entity.UserThings;
import com.yang.service.UserThingsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 用户事件表(UserThings)表服务实现类
 *
 * @author yangdacheng
 * @since 2022-03-02 19:11:03
 */
@Service("userThingsService")
public class UserThingsServiceImpl implements UserThingsService {
    @Resource
    private UserThingsDao userthingsDao;

    @Override
    public Boolean insertUserThings(UserThings userThings) {
        return userthingsDao.insertUserThings(userThings);
    }

    @Override
    public Boolean deleteUserThings(String thingsID) {
        return userthingsDao.deleteUserThings(thingsID);
    }

    @Override
    public List<UserThings> queryThingsByUID(String uid) {
        return userthingsDao.queryThingsByUID(uid);
    }

    @Override
    public UserThings queryThingsByTID(String tid) {
        return userthingsDao.queryThingsByTID(tid);
    }
}